package com.hexu.event.bean;

import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class UserBean {

    private SimpleStringProperty phoneNumber;
    private SimpleStringProperty userName;
    private SimpleIntegerProperty balance;
    private SimpleStringProperty  sex;
    private SimpleStringProperty freeze;
    private SimpleStringProperty deblocking;

    public UserBean(){
        super();
    }

    public UserBean(String phoneNumber, String userName, Integer balance,String sex,String freeze,String deblocking) {
        this.phoneNumber = new SimpleStringProperty(phoneNumber);
        this.userName = new SimpleStringProperty(userName);
        this.balance = new SimpleIntegerProperty(balance);
        this.sex = new SimpleStringProperty(sex);
        this.freeze = new SimpleStringProperty(freeze);
        this.deblocking = new SimpleStringProperty(deblocking);
    }

    //getter and setter

    public String getPhoneNumber() {
        return phoneNumber.get();
    }

    public SimpleStringProperty phoneNumberProperty() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber.set(phoneNumber);
    }

    public String getUserName() {
        return userName.get();
    }

    public SimpleStringProperty userNameProperty() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName.set(userName);
    }

    public int getBalance() {
        return balance.get();
    }

    public SimpleIntegerProperty balanceProperty() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance.set(balance);
    }

    public String getSex() {
        return sex.get();
    }

    public SimpleStringProperty sexProperty() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex.set(sex);
    }

    public String getFreeze() {
        return freeze.get();
    }

    public SimpleStringProperty freezeProperty() {
        return freeze;
    }

    public void setFreeze(String freeze) {
        this.freeze.set(freeze);
    }

    public String getDeblocking() {
        return deblocking.get();
    }

    public SimpleStringProperty deblockingProperty() {
        return deblocking;
    }

    public void setDeblocking(String deblocking) {
        this.deblocking.set(deblocking);
    }
}
